text: add undo support to GtkText
authorChristian Hergert <chergert@redhat.com>
Fri, 1 Nov 2019 18:13:30 +0000 (11:13 -0700)
committerChristian Hergert <chergert@redhat.com>
Tue, 5 Nov 2019 18:27:29 +0000 (10:27 -0800)
commitfb4fbfb2a809947926c8d718a3be215f4415db32
tree0d07e354391af254c7edfbd7db47a8fe77ac0fc8
parent7e77afe94c14365d538c958d23c1e3e074530415
text: add undo support to GtkText

This adds support using the GtkTextHistory helper for undo/redo to the
GtkText widget. It is similar in use to GtkTextView, but with a simplified
interface.

You can disable undo support using the GtkText:enable-undo property. By
default, it is enabled.
gtk/gtktext.c
testsuite/gtk/action.c